Don't emit a prompt in Eshell when a background command is killed
authorJim Porter <jporterbugs@gmail.com>
Tue, 9 Jul 2024 17:45:35 +0000 (10:45 -0700)
committerJim Porter <jporterbugs@gmail.com>
Thu, 11 Jul 2024 23:39:35 +0000 (16:39 -0700)
commit0de0056fd6b3b70dde54884db5d9ffc013c49efc
tree0763897ad6af5c2f90ec066be7e1dc4c4730a02a
parentec1e300a215504bb9905a31145924d7f3d2cb9ab
Don't emit a prompt in Eshell when a background command is killed

* lisp/eshell/esh-cmd.el (eshell-resume-command): Check for
background-ness before resetting the prompt.

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/background/simple-command): Make the regexp a bit
stricter.
(esh-cmd-test/background/kill): New test.
lisp/eshell/esh-cmd.el
test/lisp/eshell/esh-cmd-tests.el